<?php

class Application_Form_NovaStranka extends Zend_Form
{

    public function init()
    {
        // Set the method for the display form to POST
        $this->setMethod('post');

        $this->addElement('text', 'emso', array(
            'label'      => 'Emso',
            'required'   => true,
            'class'      => 'form-control',
            'validators' => array('Digits', array('StringLength', false, array(13)))
        ));

        $this->addElement('text', 'ime', array(
            'label'      => 'Ime',
            'required'   => true,
            'class'      => 'form-control'
        ));

        $this->addElement('text', 'priimek', array(
            'label'      => 'Priimek',
            'required'   => true,
            'class'      => 'form-control'
        ));

        $this->addElement('textarea', 'naslov', array(
            'label'      => 'Naslov',
            'required'   => true,
            'class'      => array('form-control', 'prodaja-textarea')
        ));

        $this->addElement('text', 'telefon', array(
            'label'      => 'Telefon',
            'required'   => true,
            'class'      => 'form-control',
        ));

        $this->addElement('text', 'email', array(
            'label'      => 'Email',
            'required'   => true,
            'class'      => 'form-control',
            'validators' => array('EmailAddress')

        ));

        $this->addElement('password', 'geslo', array(
            'label'      => 'Geslo',
            'required'   => true,
            'class'      => 'form-control'
        ));

        $this->addElement('submit', 'submit', array(
            'label'    => 'Save',
            'class'      => 'form-control'
        ));

        $this->setAttrib('class', 'form-group');
        $this->setAttrib('id', 'new-stranka-form');
    }


}

